
#ifndef __LIGHT_CONTROL_H__
#define __LIGHT_CONTROL_H__

#include "bh1750_my.h"

//线程名
#define light_control_thread_name       "light_control"
//信号量名
#define lx_control_up_sem_name          "lx_control_up"
#define lx_control_down_sem_name        "lx_control_down"

//用户设定光强阈值及步进
#define light_lx_user_max               3000
#define light_lx_user_min               0
#define light_lx_user_Stepping          100
//#define light_lx_user_init              1500
//光强PID调节系数
#define light_pid_kp 1  //1         10
#define light_pid_ki  0.35  //(0.5)    2.8
#define light_pid_kd  -0.5 //(-0.3)    -3
//开启或关闭灯光缓动延时ms
#define light_on_off_delay_ms           6000

rt_uint32_t light_lx_user_dst_percent(void);

#endif
